package com.ruoyi.procurementmanagement.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购计划产品(es_procurement_plan_product)对象 es_procurement_plan_product
 *
 * @author ruoyi
 * @date 2025-04-15
 */
public class EsProcurementPlanProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 采购计划ID */
    @Excel(name = "采购计划ID")
    private Integer planId;

    /** 产品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 产品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 产品编号 */
    @Excel(name = "商品编号")
    private String goodsSn;

    /** 产品规格 */
    @Excel(name = "商品规格")
    private String specification;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Integer categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 条形码 */
    @Excel(name = "条形码")
    private String barcode;

    /** 计划采购数量 */
    @Excel(name = "计划采购数量")
    private Integer procurementNum;

    /** 计划供应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划供应时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date supplyTime;

    /** 产品成本价 */
    @Excel(name = "产品成本价")
    private BigDecimal costPrice;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxRate;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setPlanId(Integer planId)
    {
        this.planId = planId;
    }

    public Integer getPlanId()
    {
        return planId;
    }


    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }
    public void setCategoryId(Integer categoryId)
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId()
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setBarcode(String barcode)
    {
        this.barcode = barcode;
    }

    public String getBarcode()
    {
        return barcode;
    }
    public void setProcurementNum(Integer procurementNum)
    {
        this.procurementNum = procurementNum;
    }

    public Integer getProcurementNum()
    {
        return procurementNum;
    }
    public void setSupplyTime(Date supplyTime)
    {
        this.supplyTime = supplyTime;
    }

    public Date getSupplyTime()
    {
        return supplyTime;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setCostPrice(BigDecimal costPrice)
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice()
    {
        return costPrice;
    }
    public void setTaxRate(BigDecimal taxRate)
    {
        this.taxRate = taxRate;
    }

    public BigDecimal getTaxRate()
    {
        return taxRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsSn", getGoodsSn())
            .append("specification", getSpecification())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("barcode", getBarcode())
            .append("procurementNum", getProcurementNum())
            .append("supplyTime", getSupplyTime())
            .append("remark", getRemark())
            .append("costPrice", getCostPrice())
            .append("taxRate", getTaxRate())
            .toString();
    }
}
